<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1, user-scalable=no">
    <meta name="format-detection" content="telephone=no" />
    <title>为你心动</title>
    <link rel="stylesheet" type="text/css" media="screen" href="/static/css/base.css" />
    <link rel="stylesheet" type="text/css" media="screen" href="/static/css/valentine.css" />
    <script src="/static/js/jquery.min.js"></script>
</head>
<body>
    <section class="flower-bg">
        <figure>
             <span class="heartsmall db">
                <img class="x" src="/static/images/valentine/heartsmall.png">
            </span>
            <img class="feng" src="/static/images/valentine/feng.png">
            <figcaption>
                 <b>{$userInfo['userName']}</b> 完成跑步 <b>{$userInfo['mileage']}</b> km，在跑到
                 {if $userInfo['mileage']>1.34}1.34km{else}一半{/if}
                 的时候<br/>
                 达到了怦然心动的心率值！<br/>
                 {$userInfo['addtime']}
            </figcaption>
        </figure>
        <div class="two-code">
            <img class="" src="{$code}"><br/>
            <img class="pt10" src="/static/images/share/logo-h.png">
        </div>
        
    </section>
    <div class="white-bg">
        <a class="save-image">点击保存图片</a>
        <p class="pt10">
            <img src="/static/images/valentine/hearttwo.png">
            发送给让你心动的那个人
            <img src="/static/images/valentine/hearttwo.png">
        </p>
    </div>
</body>
<script>
    $(".save-image").click(function () {
        $(".white-bg").hide();
       if(typeof jw == "object") {
            setTimeout("jw.api('screenshot', JSON.stringify({'status': true}))",1000)
        }else{
             var way = 'http://a.mlinks.cc/Aagn?url=joggers://run';
            window.location.href=way;
        }
         _hmt.push(['_trackEvent', 'valentine', 'saveImg']);
    })
    if(typeof jw == "object") {
        jw.api('copy_current_url', JSON.stringify({'status': false}));
        jw.api('share_button', JSON.stringify({'status': true}));
        jw.api('set_share_info', JSON.stringify({
          'title':'虎扑跑步，为您心动',
          'description':'厉害了，跑个步就测出了自己怦然心动时的心率',
          'img_url':'{$staticHost}/static/images/valentine/icon.jpg',
          'link_url':'{$staticHost}/show/valentineS'
        }));
       
    }
</script>
{template 'show/web-footer'}